//
//  KJButton.h
//  AnItemForACar
//
//  Created by wangkejie on 16/8/28.
//  Copyright © 2016年 shiying. All rights reserved.
//

#import <UIKit/UIKit.h>



@interface KJButton : UIButton

typedef void(^buttonAction)(KJButton * kjButton);
/**
 *  上图下文 类型的 button
 *
 *  @param type  type
 *  @param frame frame
 *  @param image image
 *  @param title 文字
 *
 *  @return KJButton
 */
+ (instancetype)buttonType:(UIButtonType)type Frame:(CGRect)frame image:(UIImage *)image title:(NSString *)title;

/**
 *  底色appMainColor，白色字题
 *
 *  @param frame frame
 *  @param title title
 *
 */
+ (instancetype)buttonWithFrame:(CGRect)frame title:(NSString *)title;


/**
 *  底色appMainColor，白色字题,带圆角
 *
 *  @param frame frame
 *  @param title title
 *
 */
+ (instancetype)buttonWithFrame:(CGRect)frame title:(NSString *)title radius:(CGFloat)radius;

/**
 *  底色appMainColor，白色字题,高度的0.5倍切圆角
 *
 *  @param frame frame
 *  @param title title
 *
 */
+ (instancetype)buttonWithCirleFrame:(CGRect)frame title:(NSString *)title;

@end
